home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMPPPPIIII____RRRREEEEDDDDUUUUCCCCEEEE((((3333)))) MMMMPPPPIIII____RRRREEEEDDDDUUUUCCCCEEEE((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- MMMMPPPPIIII____RRRReeeedddduuuucccceeee - Reduces values on all processes to a single value
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- C:
-
- #include <mpi.h>
-
- int MPI_Reduce ( _s_e_n_d_b_u_f, _r_e_c_v_b_u_f, _c_o_u_n_t, _d_a_t_a_t_y_p_e,
- _o_p, _r_o_o_t, _c_o_m_m )
- void *_s_e_n_d_b_u_f;
- void *_r_e_c_v_b_u_f;
- int _c_o_u_n_t;
- MPI_Datatype _d_a_t_a_t_y_p_e;
- MPI_Op _o_p;
- int _r_o_o_t;
- MPI_Comm _c_o_m_m;
-
-
- C++:
-
- #include <mpi.h>
-
- void Intracomm::Reduce(
- const void* _s_e_n_d_b_u_f,
- void* _r_e_c_v_b_u_f,
- int _c_o_u_n_t,
- const Datatype& _d_a_t_a_t_y_p_e,
- const Op& _o_p,
- int _r_o_o_t) const
-
-
- Fortran:
-
- INCLUDE "mpif.h" (or USE MPI)
-
- <type> SENDBUF(*), RECVBUF(*)
- INTEGER _c_o_u_n_t, _d_a_t_a_t_y_p_e, _o_p, _r_o_o_t, _c_o_m_m, _i_e_r_r_o_r
-
- CALL MPI_REDUCE(_s_e_n_d_b_u_f, _r_e_c_v_b_u_f, _c_o_u_n_t, _d_a_t_a_t_y_p_e, _o_p, _r_o_o_t, _c_o_m_m, _i_e_r_r_o_r)
-
-
- SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
- This release implements the MPI 1.2 standard, as documented by the MPI
- Forum in the spring 1997 release of _M_P_I: _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
- _S_t_a_n_d_a_r_d.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The MMMMPPPPIIII____RRRReeeedddduuuucccceeee routine reduces values on all processes to a single value.
- This routine accepts the following parameters:
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- MMMMPPPPIIII____RRRREEEEDDDDUUUUCCCCEEEE((((3333)))) MMMMPPPPIIII____RRRREEEEDDDDUUUUCCCCEEEE((((3333))))
-
-
-
- _s_e_n_d_b_u_f Specifies the address of the send buffer (choice)
-
- _c_o_u_n_t Specifies the number of elements in the send buffer (integer)
-
- _d_a_t_a_t_y_p_e Specifies the data type of elements of the send buffer (handle)
-
- _o_p Specifies the reduce operation (handle)
-
- _r_o_o_t Specifies the rank of the root process (integer)
-
- _c_o_m_m Specifies the communicator (handle)
-
- _r_e_c_v_b_u_f Returns the address of the receive buffer (choice, significant
- only at root)
-
- _i_e_r_r_o_r Specifies the return code value for successful completion,
- which is in MPI_SUCCESS. MPI_SUCCESS is defined in the mmmmppppiiiiffff....hhhh
- file.
-
- NNNNOOOOTTTTEEEESSSS
- This implementation currently uses a simple tree algorithm.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-